package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="UTDetail"
 *         schema="scsc"
 *         dynamic-update="true"
 *         dynamic-insert="true"
 *     
*/
public class Utdetail implements Serializable {

    /** identifier field */
    private Long id;

    /** persistent field */
    private long processInstanceId;

    /** persistent field */
    private String userId;

    /** persistent field */
    private String state;

    /** nullable persistent field */
    private String notion;

    /** nullable persistent field */
    private String manager;

    /** nullable persistent field */
    private String createDate;

    /** nullable persistent field */
    private String latestDate;

    /** nullable persistent field */
    private String remark;

    /** full constructor */
    public Utdetail(long processInstanceId, String userId, String state, String notion, String manager, String createDate, String latestDate, String remark) {
        this.processInstanceId = processInstanceId;
        this.userId = userId;
        this.state = state;
        this.notion = notion;
        this.manager = manager;
        this.createDate = createDate;
        this.latestDate = latestDate;
        this.remark = remark;
    }

    /** default constructor */
    public Utdetail() {
    }

    /** minimal constructor */
    public Utdetail(long processInstanceId, String userId, String state) {
        this.processInstanceId = processInstanceId;
        this.userId = userId;
        this.state = state;
    }

    /** 
     *            @hibernate.id
     *             generator-class="identity"
     *             type="java.lang.Long"
     *             column="Id"
     *             unsaved-value="0"
     *         
     */
    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    /** 
     *            @hibernate.property
     *             column="ProcessInstanceID"
     *             length="18"
     *             not-null="true"
     *         
     */
    public long getProcessInstanceId() {
        return this.processInstanceId;
    }

    public void setProcessInstanceId(long processInstanceId) {
        this.processInstanceId = processInstanceId;
    }

    /** 
     *            @hibernate.property
     *             column="UserId"
     *             length="7"
     *             not-null="true"
     *         
     */
    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    /** 
     *            @hibernate.property
     *             column="State"
     *             length="1"
     *             not-null="true"
     *         
     */
    public String getState() {
        return this.state;
    }

    public void setState(String state) {
        this.state = state;
    }

    /** 
     *            @hibernate.property
     *             column="Notion"
     *             length="2147483647"
     *         
     */
    public String getNotion() {
        return this.notion;
    }

    public void setNotion(String notion) {
        this.notion = notion;
    }

    /** 
     *            @hibernate.property
     *             column="Manager"
     *             length="7"
     *         
     */
    public String getManager() {
        return this.manager;
    }

    public void setManager(String manager) {
        this.manager = manager;
    }

    /** 
     *            @hibernate.property
     *             column="CreateDate"
     *             length="23"
     *         
     */
    public String getCreateDate() {
        return this.createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    /** 
     *            @hibernate.property
     *             column="LatestDate"
     *             length="23"
     *         
     */
    public String getLatestDate() {
        return this.latestDate;
    }

    public void setLatestDate(String latestDate) {
        this.latestDate = latestDate;
    }

    /** 
     *            @hibernate.property
     *             column="Remark"
     *             length="100"
     *         
     */
    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("id", getId())
            .toString();
    }

}
